<%--
  Created by IntelliJ IDEA.
  User: sgx
  Date: 2021/4/13
  Time: 17:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>年龄</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${list}" var="stu">
        <tr>
        <td>${stu.id}</td>
        <td>${stu.name}</td>
        <td>${stu.age}</td>
        <td>
            <%--REST风格 后台@RequestMapping、@PathVirb写一下--%>
            <a href="/stu/delete/${stu.id}">删除</a>
            <a href="/stu/findById/${stu.id}">修改</a>
        </td>
    </tr>
    </c:forEach>
</table>
<a href="/save.jsp">添加学生</a>
</body>
</html>
